package com.jvtd.utils.aes;

/**
 * 作者:chenlei
 * 时间:2019-09-09 10:37
 */
public class JvtdAesUtils {
    public static final String AES_PWD = "iaIbvwQmkzPxOYOH";
    public static final String AES_IV = "xgWSdsw57LVOKJ6r";

    //aes加密
    public static String encrypt(String value) {
        return encrypt(value, AES_PWD, AES_IV);
    }

    public static String encrypt(String value, String key, String iv) {
        return JvtdAes.encryptString(value, key, iv);
    }

    //aes解密
    public static String decrypt(String value) {
        return decrypt(value, AES_PWD, AES_IV);
    }

    public static String decrypt(String value, String key, String iv) {
        return JvtdAes.decryptString(value, key, iv);
    }
}

